<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/taglibs-struts2.jsp" %>

<div style="padding-left: 300px">
    共<c:out value="${pageProperty.paginater.totalCount}"/>条
    第<c:out value="${pageProperty.paginater.page+1}"/>页
  <c:if test="${pageProperty.paginater.page>0}">
  	<a href="<c:url value="${pageLnk}"><c:param name="page" value="0"/></c:url>">首页</a>
  	<a href="<c:url value="${pageLnk}"><c:param name="page" value="${pageProperty.paginater.page-1}"/></c:url>">上一页</a>
  </c:if>
  <c:forEach var="currPage" begin="${pageProperty.firstLinkedPage}" end="${pageProperty.lastLinkedPage}">
  	<c:choose>
  		<c:when test="${currPage==pageProperty.paginater.page}"><c:out value="${currPage+1}"/></c:when>
  		<c:otherwise><a href="<c:url value="${pageLnk}"><c:param name="page" value="${currPage}"/></c:url>"><c:out value="${currPage+1}"/></a></c:otherwise>
  	</c:choose>
  </c:forEach>
  <c:if test="${pageProperty.lastLinkedPage+1<pageProperty.paginater.pageCount}">
  	<a href="<c:url value="${pageLnk}"><c:param name="page" value="${pageProperty.lastLinkedPage+1}"/></c:url>">下一页</a>
  	<a href="<c:url value="${pageLnk}"><c:param name="page" value="${pageProperty.paginater.pageCount-1}"/></c:url>">末页</a>
  </c:if>
  <%--<input class="p_input" type="text" name="w_page">
  --%></div>